#!/bin/bash

mkdir lazydocker-install
cd lazydocker-install
curl -LO https://mirror.ghproxy.com/https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh
sed -i 's/https\:\/\/github.com/https\:\/\/mirror.ghproxy.com\/https\:\/\/github.com/g' install_update_linux.sh
# echo "================"
# echo "# install_update_linux.sh:"
# cat install_update_linux.sh
# read -p "Is install_update_linux.sh right?"
bash install_update_linux.sh
cd ..
rm -r lazydocker-install
ln -s ~/.local/bin/lazydocker /usr/bin/lzd